widget: don't check before setting to avoid costly type checks
authorStefan Kost <ensonic@users.sf.net>
Thu, 11 Feb 2010 08:38:44 +0000 (10:38 +0200)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Sun, 4 Apr 2010 00:56:13 +0000 (20:56 -0400)
commit100c6dc513b90b35f17dc3abafc2ab8736ac20b7
tree7835c6d2cb2468923674dc5ca4bdb929471d6d2a
parent501f327b56e44081126ad47e2a3cb9fd9d924868
widget: don't check before setting to avoid costly type checks

There are no side effect of setting these flags and we don't fire g_object
notifies also. Thus set/unset right away without costly check of current state.
gtk/gtkwidget.c